package com.xinyue.auto.bean;

import java.util.List;

public class Entity {
	//entity类型：1>entity 2>many-many
	private int type;
	/**实体名称*/
	private String name;
	/**数据库表名称*/
	private String table;
	/**自动创建对象基础路径*/
	private String basePkg;
	
	/**导航*/
	private String navigate;
	
	/**id属性*/
	private MajorKey id;
	/**其他属性集*/
	private List<Attribute> atts;
	
	/**order by子句*/
	private String orderBy;
	
	/**查询方法集*/
	private List<Query> finds;
	
	/**导入文件*/
	private List<String> beanImpt;
	private List<String> daoImpt;
	private List<String> daoImptExt;
	
	/**是否创建相应的文件*/
	private boolean newController;
	private boolean newService;
	
	/**创建页面对象*/
	private Page page;

	//getter setter
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String getBasePkg() {
		return basePkg;
	}
	public void setBasePkg(String basePkg) {
		this.basePkg = basePkg;
	}
	public MajorKey getId() {
		return id;
	}
	public void setId(MajorKey id) {
		this.id = id;
	}
	public List<Attribute> getAtts() {
		return atts;
	}
	public void setAtts(List<Attribute> atts) {
		this.atts = atts;
	}
	public List<Query> getFinds() {
		return finds;
	}
	public void setFinds(List<Query> finds) {
		this.finds = finds;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public List<String> getBeanImpt() {
		return beanImpt;
	}
	public void setBeanImpt(List<String> beanImpt) {
		this.beanImpt = beanImpt;
	}
	public List<String> getDaoImpt() {
		return daoImpt;
	}
	public void setDaoImpt(List<String> daoImpt) {
		this.daoImpt = daoImpt;
	}
	public List<String> getDaoImptExt() {
		return daoImptExt;
	}
	public void setDaoImptExt(List<String> daoImptExt) {
		this.daoImptExt = daoImptExt;
	}
	public boolean isNewController() {
		return newController;
	}
	public void setNewController(boolean newController) {
		this.newController = newController;
	}
	public boolean isNewService() {
		return newService;
	}
	public void setNewService(boolean newService) {
		this.newService = newService;
	}
	public Page getPage() {
		return page;
	}
	public void setPage(Page page) {
		this.page = page;
	}
	public String getNavigate() {
		return navigate;
	}
	public void setNavigate(String navigate) {
		this.navigate = navigate;
	}
}